var url = window.location.href;


var link = "";
var linkIndex = 0;
var linkUrl = "";


var numArray = new Array;

numArray[0] = 15;
numArray[1] = 20;
numArray[2] = 30;


for(i = 0; i < 3 ; i++)
{

	linkUrl = "<button type = \"button\" onclick  = fn(" + i + ")> Details </button>";
	document.write(linkUrl);
}	


function fn(i)
{
	alert(numArray[i]);
}



